<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
      <title></title>
      <link rel="stylesheet" type="text/css" href="../css/api.css"/>
      <link rel="stylesheet" type="text/css" href="../css/style.css"/>
      <link rel="stylesheet" type="text/css" href="../css/iconfont.css"/>
      <style>
      #App{height:100%; background:#f2f2f2;}
      .header{background:#62c3d0;}
      </style>
  </head>
  <body>
    <div id="App" class="row-flex">
        <div id="header" class="header dflex">
            <div class="icon" onclick="goback();" tapmode=""><i class="iconfont icon-left back"></i></div>
            <div class="title flex-1 text-overflow">设置</div>
            <div class="icon"></div>
        </div>
        <div id="main" class="main flex-1 flex-con">

        </div>
    </div>
  </body>
  <script type="text/javascript" src="../script/api.js"></script>
  <script type="text/javascript">
      apiready = function(){
        var header = $api.byId('header');
        $api.fixStatusBar(header);
        api.setStatusBarStyle({style:'dark'});

        var headerPos = $api.offset(header);
        var main = $api.byId('main');
        var mainPos = $api.offset(main);

        api.openFrame({
            name: 'SetFrame',
            url: 'SetFrame.html',
            bounces: true,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: mainPos.h
            }
        });

      };
      function goback(){
        api.closeToWin({name:'root'});
      }
  </script>
  </html>
